File: /home/shaping-sar.ru/public_html/wp-content/themes/beauty spa/builder/abstract-shortcode.php
<?php
if (!defined('ABSPATH')) die('-1');
abstract class iz_shortcode
{
protected $icon = '';
protected function animation()
{
return $array = array(
__('No','iz_lang') => '',
__('FadeIn', 'iz_lang') =>'fadeIn',
__('FadeInDown', 'iz_lang') => 'fadeInDown',
__('FadeInDownBig', 'iz_lang') => 'fadeInDownBig',
__('FadeInLeft', 'iz_lang') => 'fadeInLeft',
__('FadeInLeftBig', 'iz_lang') => 'fadeInLeftBig',
__('FadeInRight', 'iz_lang') => 'fadeInRight',
__('FadeInRightBig', 'iz_lang') => 'fadeInRightBig',
__('FadeInUp', 'iz_lang') => 'fadeInUp',
__('FadeInUpBig', 'iz_lang') => 'fadeInUpBig',
__('FadeInhalf-text', 'iz_lang') => 'fadeInhalf-text',
__('FadeInhalf-symbolBig', 'iz_lang') => 'fadeInhalf-symbolBig',
__('BounceIn', 'iz_lang') => 'bounceIn',
__('BounceInDown', 'iz_lang') => 'bounceInDown',
__('BounceInLeft', 'iz_lang') => 'bounceInLeft',
__('BounceInRight', 'iz_lang') => 'bounceInRight',
__('BounceInUp', 'iz_lang') => 'bounceInUp',
__('Flash', 'iz_lang') => 'flash',
__('Pulse', 'iz_lang') => 'pulse',
__('RubberBand', 'iz_lang') => 'rubberBand',
__('Shake','iz_lang') => 'shake',
__('Swing', 'iz_lang') => 'swing',
__('Tada', 'iz_lang') => 'tada',
__('Wobble', 'iz_lang') => 'wobble',
__('Flip', 'iz_lang') => 'flip',
__('FlipInX', 'iz_lang') => 'flipInX',
__('FlipInY', 'iz_lang') => 'flipInY',
__('LightSpeedIn', 'iz_lang') => 'lightSpeedIn',
__('RotateIn', 'iz_lang') => 'rotateIn',
__('RotateInDownLeft', 'iz_lang') => 'rotateInDownLeft',
__('RotateInDownRight', 'iz_lang') => 'rotateInDownRight',
__('RotateInUpLeft', 'iz_lang') => 'rotateInUpLeft',
__('RotateInDownRight', 'iz_lang') => 'rotateInUpRight',
__('SlideInDown', 'iz_lang') => 'slideInDown',
__('SlideInLeft', 'iz_lang') => 'slideInLeft',
__('SlideInRight', 'iz_lang') => 'slideInRight',
__('RollIn', 'iz_lang') => 'rollIn',
);
}
protected function animation_class($animation)
{
if($animation != '')
{
return 'wow '.$animation.' animated';
}else
{
return '';
}
}
protected function icon($icon)
{
$this->icon = get_template_directory_uri().'/iz_shortcode/assets/images/'.$icon;
return $this->icon;
}
public function custom_shortcode($tag, $func)
{
global $shortcode_tags;
if ( is_callable($func) )
$shortcode_tags[$tag] = $func;
}
abstract function iz_vc_shortcode();
abstract function iz_render_html($atts, $content= '');
public function iz_show_admin_notice()
{
if ( ! defined( 'WPB_VC_VERSION' ) ) {
// Display notice that Visual Compser is required
?>
<div class="updated">
<p><strong>Ambrosia Theme</strong> requires <strong><a href="" target="_blank">Visual Composer</a></strong> plugin to be installed and activated on your site</p>
</div>';
<?php
}
}
public function get_template($template, $atts, $content)
{
$path = dirname(__FILE__) .'/template/';
ob_start();
include( apply_filters('iz_shortcode_template', $path . $template) );
$shortcode = ob_get_contents();
ob_end_clean();
return $shortcode;
}
}
?>